package editor.mouse;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import editor.layout.menu.TabPopUpMenu;

/**
 * Tab Adapter
 * @author Mark Dessain
 */
public class TabMouseAdapter extends MouseAdapter
{

	/**
	 *  Tab Adapter
	 */
	public TabMouseAdapter()
	{
		super();	
	}


	/* (non-Javadoc)
	 * @see java.awt.event.MouseAdapter#mousePressed(java.awt.event.MouseEvent)
	 */
	@Override
	public void mousePressed(MouseEvent e) 
	{
		if(e.getButton() == MouseEvent.BUTTON3)
		{
			TabPopUpMenu tabPopUpMenu = new TabPopUpMenu();
			tabPopUpMenu.show(e.getComponent(), e.getX(), e.getY());
		}
	}
}
